package com.king.wx.param;

import com.king.wx.http.HttpClientUtil;
import com.king.wx.model.Member;
import com.king.wx.model.SyncKey;

import java.util.List;
import java.util.Map;

/**
 * @author TaoBangren
 * @version 1.0
 * @since 16/5/28 下午10:10
 */
public final class WxContext {

    public final HttpClientUtil HTTP_CLIENT = new HttpClientUtil();

    private String url;

    private String skey;

    private String wxsid;

    private long wxuin;

    private String passTicket;

    private String uuid;

    private Member currentMember;

    private List<Member> contacts;

    private Map<String, Member> contactMap;

    private List<Member> chatRooms;

    private Map<String, Member> chatRoomMap;

    private List<SyncKey> syncKeys;

    private String syncKey;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSkey() {
        return skey;
    }

    public void setSkey(String skey) {
        this.skey = skey;
    }

    public String getWxsid() {
        return wxsid;
    }

    public void setWxsid(String wxsid) {
        this.wxsid = wxsid;
    }

    public long getWxuin() {
        return wxuin;
    }

    public void setWxuin(long wxuin) {
        this.wxuin = wxuin;
    }

    public String getPassTicket() {
        return passTicket;
    }

    public void setPassTicket(String passTicket) {
        this.passTicket = passTicket;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Member getCurrentMember() {
        return currentMember;
    }

    public void setCurrentMember(Member currentMember) {
        this.currentMember = currentMember;
    }

    public List<Member> getContacts() {
        return contacts;
    }

    public void setContacts(List<Member> contacts) {
        this.contacts = contacts;
    }

    public List<Member> getChatRooms() {
        return chatRooms;
    }

    public void setChatRooms(List<Member> chatRooms) {
        this.chatRooms = chatRooms;
    }

    public List<SyncKey> getSyncKeys() {
        return syncKeys;
    }

    public void setSyncKeys(List<SyncKey> syncKeys) {
        this.syncKeys = syncKeys;
    }

    public BaseRequest getBaseRequest() {
        return new BaseRequest(skey, wxsid, wxuin, passTicket);
    }

    public Map<String, Member> getContactMap() {
        return contactMap;
    }

    public void setContactMap(Map<String, Member> contactMap) {
        this.contactMap = contactMap;
    }

    public Map<String, Member> getChatRoomMap() {
        return chatRoomMap;
    }

    public void setChatRoomMap(Map<String, Member> chatRoomMap) {
        this.chatRoomMap = chatRoomMap;
    }

    public String getSyncKey() {
        return syncKey;
    }

    public void setSyncKey(String syncKey) {
        this.syncKey = syncKey;
    }
}
